package com.zmn.plat.common.constant;

/**
 * @author quanjic
 * @version v1.0
 * @since 2019/10/15 19:43
 **/
public class ExpressConsts {

    /**
     * 物流状态：1未处理
     */
    public final static int EXPRESS_POST_STATUS_WAIT_PROCESS = 1;
    /**
     * 物流状态：2未发货
     */
    public final static int EXPRESS_POST_STATUS_WAIT_TRANSIT = 2;
    /**
     * 物流状态：3已发货
     */
    public final static int EXPRESS_POST_STATUS_TRANSIT = 3;
    /**
     * 物流状态：4已收货
     */
    public final static int EXPRESS_POST_STATUS_RECEIPT = 4;
    /**
     * 物流状态：5已退货
     */
    public final static int EXPRESS_POST_STATUS_REFUND = 5;


    /**
     * 快递状态
     *
     * @param postStatus
     * @return
     */
    public static String getPostStatusName(int postStatus) {
        switch (postStatus) {
            case EXPRESS_POST_STATUS_WAIT_PROCESS:
                return "未处理";
            case EXPRESS_POST_STATUS_WAIT_TRANSIT:
                return "未发货";
            case EXPRESS_POST_STATUS_TRANSIT:
                return "已发货";
            case EXPRESS_POST_STATUS_RECEIPT:
                return "已收货";
            case EXPRESS_POST_STATUS_REFUND:
                return "已退货";
            default:
                return "";
        }
    }

}
